<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <title>My JSP 'menusView.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  
  <body>
        <table>
    	<tr><td>&nbsp;</td><td>编号</td><td>标题</td><td>地址</td><td>状态</td><td>图标</td></tr>
	    	<core:forEach items="${menus}" var="menu" >
	    		<tr bgcolor="white">
			        <td width="5%">${menu.menuUpId}</td>
		    		<td width="5%">${menu.menuId}</td>
		    		<td width="25%">${menu.menuTitle}</td>
		    		<td width="50%">${menu.menuSrc}</td>
		    		<td width="10%">${menu.menuStatus}</td>
		    		<td width="5%"><img alt="" src="/HR_Sys/icon.do?op=showIcon&icon.id=${menu.menuPic}"/></td>
	    		</tr>
	    		<core:if test="${!empty menu.children}">
	    		<tr>
			        <td colspan="6">
			        <table width="100%">
			        <core:forEach items="${menu.children}" var="child" >
			    		<tr  bgcolor="lightblue">
					        <td width="5%">${child.menuUpId}</td>
				    		<td width="5%">${child.menuId}</td>
				    		<td width="25%">${child.menuTitle}</td>
				    		<td width="50%">${child.menuSrc}</td>
				    		<td width="10%">${child.menuStatus}</td>
				    		<td width="5%"><img alt="" src="/HR_Sys/icon.do?op=showIcon&icon.id=${child.menuPic}"/></td>
			    		</tr>
	    			 </core:forEach>
	    			 </table>
					</td>
	    		</tr>
	    		</core:if>
	    	</core:forEach>
    </table>
  </body>
</html>
